package com.hotel.service;

import com.hotel.bean.Employee;
import com.hotel.exception.SteduException;

import java.util.List;

public interface EmployeeService {
    //添加
    boolean insert(Employee employee);
    //根据eid删除
    boolean deleteByEid(Integer eid) throws SteduException;
    //根据eid修改
    boolean update(Employee employee);
    //根据eid查询
    Employee selectByEid(Integer eid) throws SteduException;
    //查询所有
    List<Employee> selectAll(String ename);
    //获取某个员工下的所有部门did
    List<Integer> selectDidByEid(Integer eid);
    //添加某个员工和全部部门
    void insertEidAndDid( Integer eid, Integer[] dids) throws SteduException;

}
